'''
Author: your name
Date: 2021-11-06 17:21:39
LastEditTime: 2021-11-06 17:21:39
LastEditors: Please set LastEditors
Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
FilePath: /opencv-python/get_Video/video_capture.py
'''
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
if not cap.isOpened():
    print("Cannot open camera")